﻿using System;
using System.Runtime.Serialization;

namespace NCMIS.ObjectModel.MetaData
{
    /// <summary>
    /// Represents a property's cardinality, indicating whether the property can have "zero or one" or "zero or more" values. 
    /// </summary>
    [DataContract(Namespace = CmisNs.Cmis)]
    public enum Cardinality
    {
        /// <summary>
        /// Property can have zero or one values (if property is required), or exactly one value (if property is required).
        /// </summary>
        [EnumMember(Value = "single")]
        Single,

        /// <summary>
        /// Property can have zero or more values (if property is not required, or one or more values (if property is not required).
        /// </summary>
        [EnumMember(Value = "multi")]
        Multi,
    }
}
